#include <cstddef>
#include "manager.h"

Manager::Manager()
	: evtmgr_(NULL)
	, parammgr_(NULL)
	, wptmgr_(NULL)
	, route_(NULL)
	, storage_(NULL)
{}

void Manager::init(LockableStorage *storage, ParamManager *parammgr, WaypointManager *wptmgr, Route *route, EventManager *evtmgr) {
	storage_ = storage;
	parammgr_ = parammgr;
	wptmgr_ = wptmgr;
	route_ = route;
	evtmgr_ = evtmgr;
}

EventManager *Manager::getEventManager() const {
	return evtmgr_;
}

ParamManager *Manager::getParamManager() const {
	return parammgr_;
}

WaypointManager *Manager::getWaypointManager() const {
	return wptmgr_;
}

Route *Manager::getRoute() const {
	return route_;
}

LockableStorage *Manager::getStorage() const {
	return storage_;
}
